package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.DataBankMapper;
import com.homedo.odin.solution.model.entity.DataBank;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Service;

/**
 * <p> 活动广告 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class DataBankServiceImpl extends BaseService<DataBankMapper, DataBank> {

    public List<DataBank> findList(Integer userId) {
        Map<String, Object> map = new HashMap<>();
        map.put("user_id", userId);
        map.put("is_del", 0);
        return baseMapper.selectByMap(map);
    }
}
